home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Util / conv / Acvt.lha / Acvt 1.07 / sources / adsk.h < prev    next >
C/C++ Source or Header  |  2001-03-08  |  2KB  |  76 lines

  1. //    This program is free software; you can redistribute it and/or modify
  2. //    it under the terms of the GNU General Public License as published by
  3. //    the Free Software Foundation; either version 2 of the License, or
  4. //    any later version.
  5. //
  6. //    This program is distributed in the hope that it will be useful,
  7. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9. //    GNU General Public License for more details.
  10. //
  11. //    You should have received a copy of the GNU General Public License
  12. //    along with this program; if not, write to the Free Software
  13. //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. //
  15.  
  16. #ifndef __ADSK_H__
  17. #define __ADSK_H__
  18.  
  19. #include "wintypes.h"
  20. #include "cobj.h"
  21. #include "cdsk.h"
  22.  
  23. #define MAX_ATARI_SECTOR_LEN 0x100
  24.  
  25. typedef enum
  26. {
  27.     DISK_AUTO,
  28.     DISK_ATR,
  29.     DISK_ATRb,
  30.     DISK_XFD,
  31.     DISK_XFDb,
  32.     DISK_SCP,
  33.     DISK_DCM,
  34.     DISK_DI
  35. } DISK_TYPE;
  36.  
  37. typedef enum
  38. {
  39.     DI_RET_OK,
  40.     DI_RET_CANT_CONTINUE,
  41.     DI_RET_CONTINUE
  42. } DISKINIT_RETCODE;
  43.  
  44. class ADisk : public CDisk
  45. {
  46. public:
  47.     ADisk();
  48.     ~ADisk();
  49.  
  50.     BOOL ReadSectors( void*, int, int );
  51.     BOOL WriteSectors( int, void*, int );
  52.  
  53.     int GetBootSectorCount();
  54.     int GetBootSectorSize();
  55.     BOOL GetBootSector( BYTE* );
  56. };
  57.  
  58. void GuessClassicSizes( int, int, DISK_GEOMETRY* );
  59. void ForceClassicSize( int, int, DISK_GEOMETRY* );
  60. void ForceClassicSize( DISK_GEOMETRY* );
  61.  
  62. char* GetDiskTypeName( DISK_TYPE disktype );
  63. char* GetDiskTypeExt( DISK_TYPE disktype );
  64.  
  65. DISKINIT_RETCODE InitializeDisk( ADisk**, DISK_TYPE, char*, BOOL bVerbose, BOOL, BOOL );
  66.  
  67.  
  68. #include "adsk_atr.h"
  69. #include "adsk_xfd.h"
  70. #include "adsk_scp.h"
  71. #include "adsk_dcm.h"
  72. #include "adsk_di.h"
  73.  
  74. #endif //_ADSK_H__
  75.  
  76.